public class demo {
    public static void main(String[] args) {
        int a = 10, b = 5,c =50,d;

        long starTime=System.nanoTime();
        for (int i=0 ;i<10000;i++){
            d = Math.min(a, b);
        }
        long endTime=System.nanoTime();
        long Time=endTime-starTime;
        System.out.println(Time);

        starTime=System.nanoTime();
        for(int j=0;j<10000;j++){
            d = (a<b)? a:b;
        }
        endTime=System.nanoTime();
        Time=endTime-starTime;
        System.out.println(Time);

    }
}
